package com.ruoyi.service.impl;

import com.ruoyi.domain.Step;
import com.ruoyi.domain.UserDeviceData;
import com.ruoyi.mapper.StepMapper;
import com.ruoyi.service.StepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: StepServiceImpl
 * @Description:
 * @author: lifei
 * @date: 2025年01月16日 13:24
 */
@Service
public class StepServiceImpl implements StepService {

    @Autowired
    private StepMapper stepMapper;

    /**
     * 获取最近七天步数数据
     *
     * @param userId 用户ID
     * @return 步数数据列表
     */
    @Override
    public List<Step> selectWeekStep(long userId) {
        return stepMapper.selectWeekStep(userId);
    }

    /**
     * 获取用户当天步数数据
     *
     * @param userId 用户ID
     * @return 用户当天步数数据
     */
    @Override
    public List<Step> selectUserTodaySteps(long userId) {
        return stepMapper.selectUserTodaySteps(userId);
    }
}
